package com.shen.driver;

/**
 * Author:shen
 * CreateDate:2020/5/11.
 * Function:
 */
public class Tanks {
    private int horsepower;
    private int warhead;

    public Tanks() {
    }

    public Tanks(int horsepower, int warhead) {
        this.horsepower = horsepower;
        this.warhead = warhead;
    }

    public int getHorsepower() {
        return horsepower;
    }

    public void setHorsepower(int horsepower) {
        this.horsepower = horsepower;
    }

    public int getWarhead() {
        return warhead;
    }

    public void setWarhead(int warhead) {
        this.warhead = warhead;
    }
    /**
     * 坦克启动
     */
    public void start(){
        System.out.println("坦克—————启动");
    }
    /**
     * 坦克爬坡
     */
    public void climbing(){
        System.out.println("坦克-----------爬坡");
    }

}
